const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  // 可以用三元运算符,也可以用可选链
  staffPhoto: state => state.user.userInfo?.staffPhoto,
  name: state => state.user.userInfo?.username
}
export default getters
